export const getTime = () => {
  let message = '';
  const hours = new Date().getHours();
  switch (true) {
    case hours < 8 && hours > 0:
      message = '早上';
      break;
    case hours < 11 && hours >= 8:
      message = '上午';
      break;
    case hours < 14 && hours >= 11:
      message = '中午';
      break;
    case hours < 18 && hours >= 14:
      message = '下午';
      break;
    case hours < 24 && hours >= 18:
      message = '晚上';
      break;
    default:
      break;
  }
  return message;
};
